﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DnaCoreLib
{
    public class ParameterWithOptions : Parameter, IParameterWithOptions
    {
        public ParameterWithOptions(string labelName, ParameterOption[] optionList, object defaultOption)
            : base(labelName)
        {
            OptionList = optionList;
            DefaultOption = defaultOption;
        }
        public ParameterOption[] OptionList {get; set;}
        public object DefaultOption { get; set; }

        public void AddOption(ParameterOption newOption)
        {
            List<ParameterOption> paramList=OptionList.ToList<ParameterOption>();
            paramList.Add(newOption);
            OptionList = paramList.ToArray();
        }
    }
}
